package com.whli.jee.common.web.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 通用entity类
 * Created by whli on 2018/1/10.
 */
public class BaseEntity implements Serializable {

    /**
     * id 主键
     */
    private String id;

    /**
     * createBy 创建者
     */
    private String createBy;

    /**
     * createDate 创建时间
     */
    private Date createDate;

    /**
     * updateBy 修改者
     */
    private String updateBy;

    /**
     * updateDate 修改时间
     */
    private Date updateDate;

    /**
     * version  版本
     */
    private Integer version;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }


    //分页相关
    private Integer currentPage;
    private Integer pageSize;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

}
